<!--用户行为-->
<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
      <el-form-item label="用户名" prop="userName">
        <el-input
          v-model="queryParams.userName"
          placeholder="请输入用户名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="用户昵称" prop="nickName">
        <el-input
          v-model="queryParams.nickName"
          placeholder="请输入用昵称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
        <!--        <el-button type="success" plain size="mini" @click="handleEditAvatar">批量修改头像</el-button>-->
      </el-form-item>
    </el-form>
    <el-form>
      <el-form-item>
        <el-button plain size="mini" @click="handlebehavior(1)">批量店铺收藏</el-button>
        <el-button plain size="mini" @click="handlebehavior(2)">批量主播点赞</el-button>
        <el-button type="info" plain size="mini" @click="handlebehavior(3)">批量直播弹幕</el-button>
        <el-button type="success" plain size="mini" @click="handlebehavior(4)">批量直播下单</el-button>
        <el-button type="danger" plain size="mini" @click="handlebehavior(5)">批量直播礼物</el-button>
        <el-button type="success" plain size="mini" @click="handlebehavior(7)">批量店铺下单</el-button>
        <!-- <el-button type="primary" plain size="mini" @click="handlebehavior(8)">批量商品评论</el-button> -->
        <el-button type="warning" plain size="mini" @click="handlebehavior(6)">批量短视频评论</el-button>
      </el-form-item>
    </el-form>
    <el-table v-loading="loading" :data="listList" border @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column
        label="用户名"
        align="center"
        prop="userName"
        width="120"
        :show-overflow-tooltip="true"
      />
      <el-table-column
        label="用户呢称"
        align="center"
        prop="nickName"
        width="120"
        :show-overflow-tooltip="true"
      />
      <el-table-column
        label="创建时间"
        align="center"
        prop="createTime"
        width="120"
        :show-overflow-tooltip="true"
      >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.createTime, '{m}/{d}/{y}') }}</span>
        </template>
      </el-table-column>
      <el-table-column
        label="最后登录时间"
        align="center"
        prop="lastLoginTime"
        width="120"
        :show-overflow-tooltip="true"
      >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.lastLoginTime, '{m}/{d}/{y}') }}</span>
        </template>
      </el-table-column>
      <!-- <el-table-column label="操作" align="center" class-name="max-operate-tab" width="140" fixed="right">
        <template slot-scope="scope">
          <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['user:list:edit']">修改</el-button>
        </template>
      </el-table-column>-->
    </el-table>
    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />
    <!-- 简单批量行为操作 -->
    <el-dialog
      :title="title"
      :visible.sync="open"
      width="900px"
      append-to-body
      center
      @close="closePop"
    >
      <el-form>
        <el-form-item label="已选择用户">
          <div style="display: flex;flex-wrap: wrap;align-items: center">
            <div
              v-for="item in selectList"
              :key="item.id"
              style="padding-right: 10px"
            >{{item.userName}}</div>
          </div>
        </el-form-item>
        <el-form-item label="已选择目标">
          <div style="display: flex;flex-wrap: wrap;align-items: center">
            <div
              v-for="item in goalList"
              :key="item.id"
              style="padding-right: 10px"
              v-if="type === 1"
            >{{item.shopName}}</div>
            <div
              v-for="item in goalList"
              :key="item.id"
              style="padding-right: 10px"
              v-if="type === 2 || type === 3 || type === 4 || type === 5"
            >{{item.anchorName}}</div>
            <!--            <div v-for="item in goalList" :key="item.id" style="padding-right: 10px" v-if="type === 3">{{item.anchorName}}</div>-->
            <!--            <div v-for="item in goalList" :key="item.id" style="padding-right: 10px" v-if="type === 4">{{item.anchorName}}</div>-->
            <!--            <div v-for="item in goalList" :key="item.id" style="padding-right: 10px" v-if="type === 5">{{item.anchorName}}</div>-->
            <div
              v-for="item in goalList"
              :key="item.id"
              style="padding-right: 10px"
              v-if="type === 6"
            >{{item.title}}</div>
            <el-button plain size="mini" @click="showBottom = !showBottom">添 加</el-button>
          </div>
        </el-form-item>
        <el-form-item label="搜索" v-show="showBottom">
          <el-input
            v-model="nickName"
            size="small"
            placeholder="请输入内容"
            style="width:260px;margin-right:5px"
          ></el-input>
          <el-button type="primary" size="small" @click="searchContent(type)">搜索</el-button>
        </el-form-item>
      </el-form>

      <el-table
        :data="shopList"
        border
        @selection-change="handleSelectionChange1"
        v-if="type === 1 && showBottom"
      >
        <el-table-column type="selection" width="55" align="center" />
        <el-table-column
          label="店铺名"
          align="center"
          prop="shopName"
          width="300"
          :show-overflow-tooltip="true"
        />
      </el-table>
      <el-table
        :data="liveList"
        border
        @selection-change="handleSelectionChange1"
        v-if="type === 2 && showBottom"
      >
        <el-table-column type="selection" width="55" align="center" />
        <el-table-column
          label="主播名"
          align="center"
          prop="nickName"
          width="300"
          :show-overflow-tooltip="true"
        />
      </el-table>
      <el-table
        :data="liveList"
        border
        @selection-change="handleSelectionChange1"
        v-if="(type === 3 || type === 4 || type === 5) && showBottom"
      >
        <el-table-column type="selection" width="55" align="center" />
        <el-table-column
          label="直播间"
          align="center"
          prop="nickName"
          width="300"
          :show-overflow-tooltip="true"
        />
        <!-- :filters="liveListFilter"
        :filter-method="filterHandler"-->
      </el-table>
      <el-table
        :data="videoList"
        border
        @selection-change="handleSelectionChange1"
        v-if="type === 6 && showBottom"
      >
        <el-table-column type="selection" width="55" align="center" />
        <el-table-column
          label="短视频"
          align="center"
          prop="title"
          width="300"
          :show-overflow-tooltip="true"
        />
      </el-table>
      <pagination
        v-show="showBottom"
        :total="pageTotal"
        :page.sync="queryParamsCommon.pageNum"
        :limit.sync="queryParamsCommon.pageSize"
        @pagination="queryPage"
      />
      <div v-if="type === 4||type === 5" style="margin-top: 25px">
        <span style="font-weight: bold;font-size: 18px;">下单额度</span>
        <div style="display: flex;align-items: center;margin-top: 10px">
          <div style="display: flex;align-items: center">
            <span style="width: 130px;display: inline-block">总额度</span>
            <el-input style="margin: 0 20px" v-model="amount" placeholder="请输入金额" clearable />
          </div>
          <span>元</span>
        </div>
      </div>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitAdd">确定添加</el-button>
      </div>
    </el-dialog>
    <!--    复杂批量行为操作-->
    <el-dialog
      :title="title"
      :visible.sync="open1"
      width="900px"
      append-to-body
      center
      @close="closePop"
    >
      <el-form>
        <el-form-item label="方式选择">
          <el-radio
            v-model="radio"
            :label="item.label"
            v-for="(item,index) in rodioList"
            :key="index"
            v-if="type === 7"
            @input="changeRadio"
          >{{item.name}}</el-radio>
          <!-- <el-radio v-model="radio" :label="item.label" v-for="(item,index) in rodioList1" :key="index" v-if="type === 8">{{item.name}}</el-radio> -->
        </el-form-item>
        <el-form-item label="已选择用户">
          <div style="display: flex;flex-wrap: wrap;align-items: center">
            <div
              v-for="item in selectList"
              :key="item.id"
              style="padding-right: 10px"
            >{{item.userName}}</div>
          </div>
        </el-form-item>
        <el-form-item label="目标店铺">
          <div style="display: flex;flex-wrap: wrap;align-items: center">
            <div
              v-for="item in goalList"
              :key="item.id"
              style="padding-right: 10px"
            >{{item.shopName}}</div>
            <el-button
              plain
              size="mini"
              @click="showBottom=!showBottom"
              v-if="goalList.length === 0"
            >店铺添加</el-button>
            <el-button type="danger" plain size="mini" @click="delList" v-else>删 除</el-button>
          </div>
        </el-form-item>
        <el-form-item label="搜索" v-if="showBottom">
          <el-input
            v-model="nickName"
            size="small"
            placeholder="请输入内容"
            style="width:260px;margin-right:5px"
          ></el-input>
          <el-button type="primary" size="small" @click="searchContent(type)">搜索</el-button>
        </el-form-item>
      </el-form>
      <el-table
        :data="shopList"
        border
        v-if="showBottom "
        @selection-change="handleSelectionChange3"
      >
        <el-table-column type="selection" width="55" />
        <el-table-column
          label="店铺名"
          align="center"
          prop="shopName"
          width="300"
          :show-overflow-tooltip="true"
        />
      </el-table>
      <pagination
        v-show="showBottom"
        :total="pageTotal"
        :page.sync="queryParamsCommon.pageNum"
        :limit.sync="queryParamsCommon.pageSize"
        @pagination="queryPage"
      />
      <el-form style="margin-top: 30px">
        <el-form-item label="目标商品" v-if="showBottom && radio === 2">
          <div style="display: flex;flex-wrap: wrap;align-items: center">
            <div
              v-for="item in goalList1"
              :key="item.id"
              style="padding-right: 10px"
            >{{item.goodsName}}</div>
            <el-button plain size="mini" @click="showBottom =true">商品添加</el-button>
          </div>
        </el-form-item>
        <el-form-item label="搜索" v-if="radio === 2&&goalList.length>0">
          <el-input
            v-model="searchGoodsValue"
            size="small"
            placeholder="请输入内容"
            style="width:260px;margin-right:5px"
          ></el-input>
          <el-button type="primary" size="small" @click="searchGoods">搜索</el-button>
        </el-form-item>
      </el-form>
      <el-table
        :data="goodsList1"
        border
        v-if="radio === 2&&goalList.length>0"
        @selection-change="handleSelectionChange2"
      >
        <el-table-column type="selection" width="55" align="center" :show-checkbox="true" />
        <el-table-column
          label="商品名"
          align="center"
          prop="goodsName"
          width="300"
          :show-overflow-tooltip="true"
        />
      </el-table>
      <div v-if="type === 7" style="margin-top: 25px">
        <span style="font-weight: bold;font-size: 18px;">下单额度</span>
        <div style="display: flex;align-items: center;margin-top: 10px">
          <div style="display: flex;align-items: center">
            <span style="width: 130px;display: inline-block">{{ radio === 1 ? '每个店铺' : '总共带单量' }}</span>
            <el-input style="margin: 0 20px" v-model="amount" placeholder="请输入金额" clearable />
          </div>
          <span>元</span>
        </div>
      </div>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitAdd">确定添加</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
import { listList } from '@/api/user/list'
import { add, editName, editAvatar, openShop, openAnchor, editBalance, editGold, shopModify } from '@/api/navy/user'
import {
  anchorGetAll,
  shopCollect,
  shopList,
  getRoom,
  videoPage,
  livesGiveLike,
  shopOrder,
  videoComment, livesOrder, livesGift, livesBulletScreen, shopGoodsInfo, shopComment
} from '@/api/navy/behavior'

export default {
  name: 'user',
  components: {},
  dicts: ['user_type', 'block_protocols', 'user_source'],
  data () {
    return {
      nickName: null,
      liveListFilter: [],
      loading: false,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      pageTotal: 0,

      // 用户列表表格数据
      listList: [],
      goodsList1: [],
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        userSysType: 0,
        userName: null,
        nickName: null,
      },
      queryParamsCommon: {
        pageNum: 1,
        pageSize: 6,
      },
      open: false,
      open1: false,
      // 标题
      title: '',
      form: {
        count: null,
        names: null,
        addShop: '1',
        addAnchor: '1',
      },
      rules: {
        count: [
          { required: true, message: "新增数量不能为空", trigger: "blur" }
        ],
        names: [
          { required: true, message: "水军用户名称不能为空", trigger: "blur" }
        ],
        addShop: [
          { required: true, message: "", trigger: "blur" }
        ],
        addAnchor: [
          { required: true, message: "", trigger: "blur" }
        ],
      },
      selectList: [],
      goalList: [],
      goalList1: [],
      avatarNum: 1,
      openEdit: false,
      formEdit: {},
      formPop: {
        email: '',
        pic: '',
      },
      edit: 'fund',
      shopList: [],
      anchorList: [],
      liveList: [],
      videoList: [],
      showBottom: false,
      type: 0,
      // 直播间金额
      amount: null,
      selectedRow: null,
      radio: 1,
      rodioList: [{ label: 1, name: '多店随机' }, { label: 2, name: '一店多卖' }],
      rodioList1: [{ label: 1, name: '多店随机' }, { label: 2, name: '一店多评' }, { label: 3, name: '一物多评' }],
      searchGoodsId: null,
      searchGoodsValue: null,
    }
  },
  created () {
    this.getList()
    /*  this.queryShop();
     this.queryAnchor();
     this.queryRoom();
     this.queryComment();
     this.queryVideo(); */
  },
  methods: {
    changeRadio (v) {
      this.radio = v
      this.goodsList1 = []
      this.goalList = []
      this.queryShop()
    },
    // 过滤
    filterHandler (value, row, column) {
      const property = column['property']
      return row[property] === value
    },
    /** 查询用户列表列表 */
    getList () {
      this.loading = true
      listList(this.queryParams).then(response => {
        this.listList = response.data.records
        this.total = response.data.total
        this.loading = false
      })
    },
    // 弹窗内分页
    queryPage () {
      if (this.type === 1 || this.type === 7 || this.type === 8) {
        this.queryShop()
      } else if (this.type === 2 || this.type === 3 || this.type === 4 || this.type === 5) {
        this.queryRoom()
      } else if (this.type === 6) {
        this.queryVideo()
      }
    },
    /** 搜索按钮操作 */
    handleQuery () {
      this.queryParams.pageNum = 1
      this.getList()
    },
    /** 重置按钮操作 */
    resetQuery () {
      this.resetForm('queryForm')
      this.handleQuery()
    },
    // 关闭弹窗 重置数据
    closePop () {
      this.goalList = []
      this.goalList1 = []
      this.showBottom = false
      this.queryParamsCommon.pageNum = 1
      this.amount = null
    },
    // 多选框选中数据
    handleSelectionChange (selection) {
      this.selectList = selection
      this.ids = selection.map(item => item.id)
      this.single = selection.length !== 1
      this.multiple = !selection.length
      this.avatarNum = selection.length
    },
    handleSelectionChange3 (selection) {
      console.log(selection)
      if (this.radio === 2) {
        if (selection.length > 1) {
          this.$message.warning('多店随机只能选择一个店铺！默认第一个')
          this.goalList = [selection[0]]
          console.log(this.goalList)
          shopGoodsInfo({
            shopId: this.goalList[0].id,
            name: this.searchGoodsValue
          }).then(res => {
            this.goodsList1 = res.data
            console.log('res', res)
          })
          this.showBottom = false
        } else if (selection.length == 1) {
          console.log(this.goalList)
          this.goalList = [selection[0]]
          shopGoodsInfo({
            shopId: this.goalList[0].id,
            name: this.searchGoodsValue
          }).then(res => {
            this.goodsList1 = res.data
            console.log('res', res)
          })
        }
      } else {
        this.goalList = []
        selection.map((item) => {
          this.goalList.push(item)
        })
        // shopGoodsInfo({
        //   shopId:ids,
        //   name:''
        // }).then(res => {
        //   this.goodsList1 = res.data
        //   console.log('res',res)
        // })
      }
    },
    handleSelectionChange1 (selection) {
      this.goalList = selection
    },
    handleSelectionChange2 (selection) {
      this.goalList1 = selection
    },
    delList () {
      this.goalList[0].checked = false
      this.goalList = []
      this.goalList1 = []
    },
    // 操作修改
    handleUpdate (row) {
      this.open1 = true
      row.pic = row.avatar
      this.formPop = JSON.parse(JSON.stringify(row))
    },
    // 重置新增表单
    reset () {
      this.form = {
        count: null,
        names: null,
        addShop: '1',
        addAnchor: '1',
      }
    },
    // 行为操作添加成功
    submitAdd () {
      if (this.goalList.length === 0) return this.$modal.msgError("选择目标不能为空")
      if (this.type === 1) {
        // 店铺收藏
        let obj = { userIds: [], shopIds: [] }
        obj.userIds = this.selectList.map(item => item.id)
        obj.shopIds = this.goalList.map(item => item.id)
        shopCollect(obj).then(res => {
          this.$modal.msgSuccess("添加成功")
          this.open = false
        })
      } else if (this.type === 2) {
        // 主播点赞
        let obj = { navyIds: [], livesIds: [] }
        obj.navyIds = this.selectList.map(item => item.id)
        obj.livesIds = this.goalList.map(item => item.id)
        livesGiveLike(obj).then(res => {
          this.$modal.msgSuccess("添加成功")
          this.open = false
        })
      } else if (this.type === 3) {
        // 直播弹幕
        let obj = { navyIds: [], liveIds: [] }
        obj.navyIds = this.selectList.map(item => item.id)
        obj.liveIds = this.goalList.map(item => item.id)
        livesBulletScreen(obj).then(res => {
          this.$modal.msgSuccess("添加成功")
          this.open = false
        })
      } else if (this.type === 4) {
        // 直播下单
        if (!this.amount) return this.$modal.msgError("金额不能为空")
        let obj = { navyIds: [], liveIds: [] }
        obj.navyIds = this.selectList.map(item => item.id)
        obj.liveIds = this.goalList.map(item => item.id)
        obj.amount = this.amount
        livesOrder(obj).then(res => {
          this.$modal.msgSuccess("添加成功")
          this.open = false
        })
      } else if (this.type === 5) {
        if (!this.amount) return this.$modal.msgError("金额不能为空")
        // 直播礼物
        let obj = { navyIds: [], liveIds: [] }
        obj.navyIds = this.selectList.map(item => item.id)
        obj.liveIds = this.goalList.map(item => item.id)
        obj.amount = this.amount
        livesGift(obj).then(res => {
          this.$modal.msgSuccess("添加成功")
          this.open = false
        })
      } else if (this.type === 6) {
        let obj = { userIds: [], videoIds: [] }
        obj.userIds = this.selectList.map(item => item.id)
        obj.videoIds = this.goalList.map(item => item.id)
        videoComment(obj).then(res => {
          this.$modal.msgSuccess("添加成功")
          this.open = false
        })
      } else if (this.type === 7) {
        if (!this.amount) return this.$modal.msgError("金额不能为空")
        if (this.goalList1.length === 0 && this.radio === 2) return this.$modal.msgError("商品不能为空")
        let obj = { navyIds: [], shopIds: [] }
        obj.navyIds = this.selectList.map(item => item.id)
        obj.shopIds = this.goalList.map(item => item.id)
        obj.shopGoodsIds = this.goalList1.map(item => item.goodsId)
        obj.amount = this.amount
        shopOrder(obj).then(res => {
          this.$modal.msgSuccess("添加成功")
          this.open1 = false
        })
      } else if (this.type === 8) {
        let obj = {}
        if (this.goalList1.length === 0 && this.radio === 2) return this.$modal.msgError("商品不能为空")
        if (this.radio === 2) obj.skuIds = this.goalList1.map(item => item.goodsId)
        obj.type = this.radio
        obj.navyIds = this.selectList.map(item => item.id)
        obj.shopList = this.goalList.map(item => item.id)
        shopComment(obj).then(res => {
          this.$modal.msgSuccess("添加成功")
          this.open1 = false
        }).catch(() => {
          this.open1 = false
        })
      }
    },
    // 查询店铺
    queryShop () {
      shopList(
        {
          pageNum: this.queryParamsCommon.pageNum,
          pageSize: this.queryParamsCommon.pageSize,
          shopName: this.nickName
        }
      ).then(res => {
        this.shopList = res.data.records
        this.pageTotal = res.data.total
        this.shopList.forEach(obj => {
          this.$set(obj, 'checked', false)
        })

      })
    },
    // 查询主播
    queryAnchor () {
      anchorGetAll(
        {
          pageNum: this.queryParamsCommon.pageNum,
          pageSize: this.queryParamsCommon.pageSize,
          nickName: this.nickName
        }
      ).then(res => {
        this.anchorList = res.data.records
        this.pageTotal = res.data.total
        this.anchorList.forEach(obj => {
          this.$set(obj, 'checked', false)
        })
      })
    },
    // 查询视频
    queryVideo () {
      videoPage(
        {
          pageNum: this.queryParamsCommon.pageNum,
          pageSize: this.queryParamsCommon.pageSize,
          title: this.nickName,
          status: 1
        }
      ).then(res => {
        this.videoList = res.data.records
        this.pageTotal = res.data.total
        this.videoList.forEach(obj => {
          this.$set(obj, 'checked', false)
        })
      })
    },
    // 查询直播间
    queryRoom () {
      let obj = {
        status: 2,
        pageNum: this.queryParamsCommon.pageNum,
        pageSize: this.queryParamsCommon.pageSize,
        nickName: this.nickName
      }
      getRoom(obj).then(res => {
        this.liveList = res.data.records
        this.pageTotal = res.data.total
        this.liveList.forEach(obj => {
          this.$set(obj, 'checked', false)
          this.liveListFilter.push({ text: obj.anchorName, value: obj.anchorName })
        })
      })
    },
    searchContent (type) {
      // 页数重置为1
      this.queryParamsCommon.pageNum = 1
      if (type === 1 || type === 7 || type === 8) {
        this.queryShop()
      } else if (type === 2 || type === 3 || type === 4 || type === 5) {
        this.queryRoom()
      } else if (type === 6) {
        this.queryVideo()
      }
    },
    // 查询评论
    queryComment () { },
    // 简单行为
    handlebehavior (type) {
      // 条数重置为10
      this.queryParamsCommon.pageSize = 10
      this.nickName = null
      this.searchGoodsValue = null
      this.goodsList1 = []
      if (this.checkUser()) {
        this.type = type
        switch (type) {
          case 1:
            this.queryShop()
            this.title = '批量店铺收藏'
            break
          case 2:
            this.queryRoom()
            this.title = '批量主播点赞'
            break
          case 3:
            this.queryRoom()
            this.title = '批量直播弹幕'
            break
          case 4:
            this.queryRoom()
            this.title = '批量直播下单'
            break
          case 5:
            this.queryRoom()
            this.title = '批量直播礼物'
            break
          case 6:
            this.queryVideo()
            this.title = '批量短视频评论'
            break
          case 7:
            this.queryShop()
            this.title = '批量店铺下单'
            break
          case 8:
            this.queryShop()
            this.title = '批量商品评论'
            break
        }
        if (type === 7 || type === 8) {
          this.open1 = true
        } else {
          this.open = true
        }
      }
    },
    //检查已选数据
    checkUser: function () {
      if (this.ids.length == 0) {
        this.$modal.msgError("请先选择需要修改的水军用户！")
        return false
      } else {
        return true
      }
    },
    handleCheckboxChange (row) {
      if (row.checked) {
        this.shopList.forEach(item => {
          if (item !== row) {
            item.checked = false
          } else {
            this.goalList.push(row)
            this.searchGoodsId = row.id
            shopGoodsInfo({
              shopId: row.id,
              name: ''
            }).then(res => {
              this.goodsList1 = res.data
              console.log('res', res)
            })
          }
        })
      }
    },
    searchGoods () {
      shopGoodsInfo({
        shopId: this.goalList[0].id,
        name: this.searchGoodsValue
      }).then(res => {
        this.goodsList1 = res.data
        console.log('res', res)
      })
    },
  }
}
</script>

